package com;

import com.util.boxs.paints.PaintableObject;


public abstract class ActivityObject extends PaintableObject {
    public static final int LIVE = 0; /** 活着的 */
    public static final int GO_DEAD = 1; /** 去死中 */
    public static final int DEAD = 2; /** 死了的 */
    protected int state = LIVE; //当前状态(默认为活着的)
    public ActivityObject(int pixelX, int pixelY, int pixelRadius) {
        super(pixelX, pixelY, pixelRadius);
    }

    public ActivityObject(int pixelX, int pixelY, int width, int height) {
        super(pixelX, pixelY, width, height);
    }


    /** 海洋对象去死 */
    public void goDead(){
        state = GO_DEAD; //将对象状态修改为去死
    }

    public boolean isDead(){
        return state==DEAD;
    }
}
